/*Filename: extract.do
*Last revised: 2021-08-25


Description:
- This program creates an individual level file including all individual and selected family 
variables for years 1968 through 2017.   
- It begins with the individual file and then merges in relevant family information.

** NOTE: The survey waves/years line up as follows												
/*	 
	1	1968		11	1978		21	1988		31	1999	41 2019
	2	1969		12	1979		22	1989		32	2001
	3	1970		13	1980		23	1990		33	2003
	4	1971		14	1981		24	1991		34	2005
	5	1972		15	1982		25	1992		35	2007
	6	1973		16	1983		26	1993		36	2009
	7	1974		17	1984		27	1994		37	2011
	8	1975		18	1985		28	1995		38  2013	
	9	1976		19	1986		29	1996		39  2015	
	10	1977		20	1987		30	1997		40  2017	
*/
***************************************************/
*Preamble
clear all
program drop _all
cap log close
set maxvar 32000

set more off
*************************************************
* Directories
//gl rawdata   "/users/kvosters/PSID/data/"


* Log file
cd $rawdata
log using extract.log, replace

*************************************************************************;
* Program to use for all family merges
 ** The program defines 5 arguments:
	// 1) skeleton = dataset to start with
	// 2) indata = dataset we want to add
	// 3) wave = the # of the wave (or year, in some cases) of data
	// 4) idvar = the ID variable we are merging on
	// 5) keepvars = the variables we want to keep from the new data we are bringing in
 ** The program uses the new data, keeps the desired/specified `keepvars' from the
	// new data, renames the ID variable, then merges on the ID variables with the 
	// individual (cross-year) file.
	
program dataadd
  args skeleton indata wave idvar keepvars
    clear
	noi cd $rawdata
	noi use `indata'
	 cap noi keep `keepvars'
	 noi rename `idvar' id`wave' 
	 noi merge 1:m id`wave' using `skeleton', nogen
    noi renvars, lower
    qui compress
    save `skeleton', replace
end

*************************************************************************;
******************* Loading up the individual-level file ****************;
** Recoding individual file to have easy Variable names;



cd $rawdata  
  use ind2019er, clear
  
#delimit ;																			

      ren ER32000 sex				

     ; ren ER30001 id1      ; ren ER30020 id2     ; ren ER30043 id3
     ; ren ER30067 id4      ; ren ER30091 id5     ; ren ER30117 id6
     ; ren ER30138 id7      ; ren ER30160 id8     ; ren ER30188 id9
     ; ren ER30217 id10     ; ren ER30246 id11    ; ren ER30283 id12
     ; ren ER30313 id13     ; ren ER30343 id14    ; ren ER30373 id15
     ; ren ER30399 id16     ; ren ER30429 id17    ; ren ER30463 id18
     ; ren ER30498 id19     ; ren ER30535 id20    ; ren ER30570 id21
     ; ren ER30606 id22     ; ren ER30642 id23    ; ren ER30689 id24
     ; ren ER30733 id25     ; ren ER30806 id26    ; ren ER33101 id27
     ; ren ER33201 id28     ; ren ER33301 id29    ; ren ER33401 id30
     ; ren ER33501 id31     ; ren ER33601 id32 	  ; ren ER33701 id33
     ; ren ER33801 id34     ; ren ER33901 id35    ; ren ER34001 id36
     ; ren ER34101 id37		; ren ER34201 id38    ; ren ER34301 id39
	 ; ren ER34501 id40		; ren ER34701 id41	  

     ; ren ER30002 seq1     ; ren ER30021 seq2    ; ren ER30044 seq3
     ; ren ER30068 seq4     ; ren ER30092 seq5    ; ren ER30118 seq6
     ; ren ER30139 seq7     ; ren ER30161 seq8    ; ren ER30189 seq9
     ; ren ER30218 seq10    ; ren ER30247 seq11   ; ren ER30284 seq12
     ; ren ER30314 seq13    ; ren ER30344 seq14   ; ren ER30374 seq15
     ; ren ER30400 seq16    ; ren ER30430 seq17   ; ren ER30464 seq18
     ; ren ER30499 seq19    ; ren ER30536 seq20   ; ren ER30571 seq21
     ; ren ER30607 seq22    ; ren ER30643 seq23   ; ren ER30690 seq24
     ; ren ER30734 seq25    ; ren ER30807 seq26   ; ren ER33102 seq27
     ; ren ER33202 seq28    ; ren ER33302 seq29   ; ren ER33402 seq30
     ; ren ER33502 seq31    ; ren ER33602 seq32	  ; ren ER33702 seq33	
     ; ren ER33802 seq34    ; ren ER33902 seq35   ; ren ER34002 seq36
     ; ren ER34102 seq37	; ren ER34202 seq38	  ; ren ER34302 seq39
	 ; ren ER34502 seq40	; ren ER34702 seq41	

     ; ren ER30003 rel1     ; ren ER30022 rel2    ; ren ER30045 rel3
     ; ren ER30069 rel4     ; ren ER30093 rel5    ; ren ER30119 rel6
     ; ren ER30140 rel7     ; ren ER30162 rel8    ; ren ER30190 rel9
     ; ren ER30219 rel10    ; ren ER30248 rel11   ; ren ER30285 rel12
     ; ren ER30315 rel13    ; ren ER30345 rel14   ; ren ER30375 rel15
     ; ren ER30401 rel16    ; ren ER30431 rel17   ; ren ER30465 rel18
     ; ren ER30500 rel19    ; ren ER30537 rel20   ; ren ER30572 rel21
     ; ren ER30608 rel22    ; ren ER30644 rel23   ; ren ER30691 rel24
     ; ren ER30735 rel25    ; ren ER30808 rel26   ; ren ER33103 rel27
     ; ren ER33203 rel28    ; ren ER33303 rel29   ; ren ER33403 rel30
     ; ren ER33503 rel31    ; ren ER33603 rel32	  ; ren ER33703 rel33
     ; ren ER33803 rel34    ; ren ER33903 rel35   ; ren ER34003 rel36
     ; ren ER34103 rel37 	; ren ER34203 rel38   ; ren ER34303 rel39
	 ; ren ER34503 rel40	; ren ER34703 rel41

     ; ren ER30004 age1     ; ren ER30023 age2    ; ren ER30046 age3  
     ; ren ER30070 age4     ; ren ER30094 age5    ; ren ER30120 age6  
     ; ren ER30141 age7     ; ren ER30163 age8    ; ren ER30191 age9  
     ; ren ER30220 age10    ; ren ER30249 age11   ; ren ER30286 age12  
     ; ren ER30316 age13    ; ren ER30346 age14   ; ren ER30376 age15  
     ; ren ER30402 age16    ; ren ER30432 age17   ; ren ER30466 age18  
     ; ren ER30501 age19    ; ren ER30538 age20   ; ren ER30573 age21  
     ; ren ER30609 age22    ; ren ER30645 age23   ; ren ER30692 age24  
     ; ren ER30736 age25    ; ren ER30809 age26   ; ren ER33104 age27
     ; ren ER33204 age28    ; ren ER33304 age29   ; ren ER33404 age30
     ; ren ER33504 age31    ; ren ER33604 age32	  ; ren ER33704 age33
     ; ren ER33804 age34    ; ren ER33904 age35   ; ren ER34004 age36
     ; ren ER34104 age37	; ren ER34204 age38   ; ren ER34305 age39
	 ; ren ER34504 age40	; ren ER34704 age41

     ; ren ER30404 birthyr16    ; ren ER30434 birthyr17   ; ren ER30468 birthyr18  
     ; ren ER30503 birthyr19    ; ren ER30540 birthyr20   ; ren ER30575 birthyr21  
     ; ren ER30611 birthyr22    ; ren ER30647 birthyr23   ; ren ER30694 birthyr24  
     ; ren ER30738 birthyr25    ; ren ER30811 birthyr26   ; ren ER33106 birthyr27
     ; ren ER33206 birthyr28    ; ren ER33306 birthyr29   ; ren ER33406 birthyr30
     ; ren ER33506 birthyr31    ; ren ER33606 birthyr32	  ; ren ER33706 birthyr33
     ; ren ER33806 birthyr34    ; ren ER33906 birthyr35   ; ren ER34006 birthyr36
     ; ren ER34106 birthyr37	; ren ER34206 birthyr38   ; ren ER34307 birthyr39
	 ; ren ER34506 birthyr40	; ren ER34706 birthyr41
	 
	 //marital pairs indicator (links couples married or permanently cohabitating at time of interview)

     ; ren ER30005 mar1     ; ren ER30024 mar2    ; ren ER30047 mar3	
     ; ren ER30071 mar4     ; ren ER30095 mar5    ; ren ER30121 mar6
     ; ren ER30142 mar7     ; ren ER30164 mar8    ; ren ER30192 mar9
     ; ren ER30221 mar10    ; ren ER30250 mar11   ; ren ER30287 mar12
     ; ren ER30317 mar13    ; ren ER30347 mar14   ; ren ER30377 mar15
     ; ren ER30405 mar16    ; ren ER30435 mar17   ; ren ER30469 mar18
     ; ren ER30504 mar19    ; ren ER30541 mar20   ; ren ER30576 mar21
     ; ren ER30612 mar22    ; ren ER30648 mar23   ; ren ER30695 mar24
     ; ren ER30739 mar25    ; ren ER30812 mar26   ; ren ER33107 mar27	 
     ; ren ER33207 mar28    ; ren ER33307 mar29   ; ren ER33407 mar30	 
     ; ren ER33507 mar31    ; ren ER33607 mar32   ; ren ER33707 mar33 
     ; ren ER33807 mar34    ; ren ER33907 mar35   ; ren ER34007 mar36
     ; ren ER34107 mar37	; ren ER34207 mar38   ; ren ER34308 mar39
	 ; ren ER34507 mar40	; ren ER34707 mar41

  	  	                                        				; ren ER30293 empstat12
     ; ren ER30323 empstat13	 ; ren ER30353 empstat14	  	; ren ER30382 empstat15	
     ; ren ER30411 empstat16	 ; ren ER30441 empstat17	  	; ren ER30474 empstat18
     ; ren ER30509 empstat19	 ; ren ER30545 empstat20	  	; ren ER30580 empstat21
     ; ren ER30616 empstat22	 ; ren ER30653 empstat23    	; ren ER30699 empstat24
     ; ren ER30744 empstat25	 ; ren ER30816 empstat26		; ren ER33111 empstat27
     ; ren ER33211 empstat28	 ; ren ER33311 empstat29		; ren ER33411 empstat30
     ; ren ER33512 empstat31	 ; ren ER33612 empstat32		; ren ER33712 empstat33
     ; ren ER33813 empstat34     ; ren ER33913 empstat35      	; ren ER34016 empstat36
     ; ren ER34116 empstat37	 ; ren ER34216 empstat38		; ren ER34317 empstat39
	 ; ren ER34516 empstat40	 ; ren ER34716 empstat41

  	  	                                        				; ren ER30476 attlast18
     ; ren ER30511 attlast19	 ; ren ER30547 attlast20	  	; ren ER30582 attlast21
     ; ren ER30618 attlast22	 ; ren ER30655 attlast23    	; ren ER30701 attlast24
     ; ren ER30746 attlast25	 ; ren ER30818 attlast26		; ren ER33113 attlast27
     ; ren ER33213 attlast28	 ; ren ER33313 attlast29		; ren ER33413 attlast30
     ; ren ER33514 attlast31	 ; ren ER33614 attlast32	    ; ren ER33714 attlast33
     ; ren ER33815 attlast34     ; ren ER33915 attlast35      	; ren ER34018 attlast36
     ; ren ER34118 attlast37 	 ; ren ER34218 attlast38

  	  	                                        		; ren ER30294 attend12
     ; ren ER30324 attend13	 ; ren ER30354 attend14	  	; ren ER30383 attend15	
     ; ren ER30412 attend16	 ; ren ER30442 attend17	  	; ren ER30477 attend18
     ; ren ER30512 attend19	 ; ren ER30548 attend20	  	; ren ER30583 attend21
     ; ren ER30619 attend22	 ; ren ER30656 attend23    	; ren ER30702 attend24
     ; ren ER30747 attend25	 ; ren ER30819 attend26		; ren ER33114 attend27
     ; ren ER33214 attend28	 ; ren ER33314 attend29		; ren ER33414 attend30
     ; ren ER33515 attend31	 ; ren ER33615 attend32		; ren ER33715 attend33
     ; ren ER33816 attend34  ; ren ER33916 attend35     ; ren ER34019 attend36
	 
	 
     ; ren ER30010 sch1						 		; ren ER30052 sch3
     ; ren ER30076 sch4	    ; ren ER30100 sch5		; ren ER30126 sch6
     ; ren ER30147 sch7	    ; ren ER30169 sch8		; ren ER30197 sch9
     ; ren ER30226 sch10	; ren ER30255 sch11		; ren ER30296 sch12
     ; ren ER30326 sch13    ; ren ER30356 sch14     ; ren ER30384 sch15
     ; ren ER30413 sch16    ; ren ER30443 sch17     ; ren ER30478 sch18
     ; ren ER30513 sch19    ; ren ER30549 sch20     ; ren ER30584 sch21
     ; ren ER30620 sch22    ; ren ER30657 sch23	 	; ren ER30703 sch24
     ; ren ER30748 sch25    ; ren ER30820 sch26	 	; ren ER33115 sch27
     ; ren ER33215 sch28    ; ren ER33315 sch29	 	; ren ER33415 sch30
     ; ren ER33516 sch31    ; ren ER33616 sch32	 	; ren ER33716 sch33 
     ; ren ER33817 sch34    ; ren ER33917 sch35     ; ren ER34020 sch36
     ; ren ER34119 sch37	; ren ER34230 sch38	    ; ren ER34349 sch39
	 ; ren ER34548 sch40	; ren ER34752 sch41

/* NOTE: weights changed over time. iwght below is indivdiual longitudinal weight,
		 but this was originally a core sample weight, then in 1997(?) becomes
		 a combined core-immigrant sample weight */
		 
     ; ren ER30019 iwgt1	 ; ren ER30042 iwgt2	  	; ren ER30066 iwgt3
     ; ren ER30090 iwgt4	 ; ren ER30116 iwgt5	  	; ren ER30137 iwgt6
     ; ren ER30159 iwgt7	 ; ren ER30187 iwgt8	  	; ren ER30216 iwgt9
     ; ren ER30245 iwgt10	 ; ren ER30282 iwgt11	  	; ren ER30312 iwgt12
     ; ren ER30342 iwgt13	 ; ren ER30372 iwgt14	  	; ren ER30398 iwgt15	
     ; ren ER30428 iwgt16	 ; ren ER30462 iwgt17	  	; ren ER30497 iwgt18
     ; ren ER30534 iwgt19	 ; ren ER30569 iwgt20	  	; ren ER30605 iwgt21
     ; ren ER30641 iwgt22	 ; ren ER30686 iwgt23	  	; ren ER30730 iwgt24
     ; ren ER30803 iwgt25	 ; ren ER30864 iwgt26		; ren ER33119 iwgt27
     ; ren ER33275 iwgt28	 ; ren ER33318 iwgt29		; ren ER33430 iwgt30
     ; ren ER33546 iwgt31	 ; ren ER33637 iwgt32		; ren ER33740 iwgt33
     ; ren ER33848 iwgt34    ; ren ER33950 iwgt35       ; ren ER34045 iwgt36
     ; ren ER34154 iwgt37	 ; ren ER34268 iwgt38		; ren ER34413 iwgt39
	 ; ren ER34650 iwgt40	 ; ren ER34863 iwgt41
     ;

#delimit cr

renvars, lower
qui compress
save composite, replace

*************************************************************************;
******************* Adding all of the family data        ****************;


#delimit ;																		

dataadd composite fam1968 1   V3      
      " V3    V5    V32   V47   V49   V53  V74  V75   V81  V85   V103  V104 
        V115  V159  V160  V181  V196  V197 V198 V239  V251 V294  V325  V337
        V338  V361  V398  V439  V266  V216 V318	V221  V93  V82	 
        V85 V86	V83	V87 V243 V90 V88  V249 V117 V118	V120 V48	V54
      " ;
dataadd composite fam1969 2   V442    
     "  V442  V449  V451  V465  V469  V475  V495  V514  V516  V529  V549  
        V550  V593  V594  V595  V603  V604  V607  V639  V640  V699  V737  V738  
        V744  V766  V801  V835  V871  V873  V876  V1014 V719  V732  V733  V743
        V793  V807	 V655  V671  V537  V530 V1008 V1011	V466	V476
        V515 V517 V519 V524 V526 V522 V528 V532 V609 V695 V697	V1013
     "  ;
dataadd composite fam1970 3 V1102   
     "  V1102 V1122 V1124 V1138 V1142 V1148 V1170 V1191 V1196 V1198 V1238 
        V1242 V1264 V1265 V1266 V1274 V1275 V1278 V1279 V1365 V1403 V1404 V1434 
        V1490 V1514 V1530 V1567 V1569 V1572 V1609 V1385 V1399 V1400 V1410 V1409
        V1484 V1496 V1289 V1335 V1103 V1215 V1228 V1239 V1241 V1139	V1149
		V1197 V1192 V1199 V1206	V1210 V1219	V1223 V1226 V1208 V1224	V1367 V1189 V1190 V1243
      " ;
dataadd composite fam1971 4 V1802   
      " V1802 V1823 V1825 V1839 V1849 V1843 V1871 V1892 V1897 V1899 V1941 
        V1945 V1967 V1968 V1971 V1979 V1980 V1983 V1984 V2072 V2115 V2116 V2145 
        V2202 V2226 V2242 V2279 V2281 V2284 V2321 V2097 V2111 V2112 V2122 V2121
        V2196 V2208 V1995 V2041 V1803 V1917 V1908 V1942	V1944 V1840	V1850
		V1898 V1893 V1900 V1907	V1912 V1921	V1925 V1928 V1910 V1926	V2074 V1890 V1891 V1946
      " ;
dataadd composite fam1972 5 V2402   
     "  V2402 V2423 V2425 V2439 V2443 V2449 V2471 V2493 V2498 V2500 V2541
        V2545 V2566 V2567 V2570 V2577 V2578 V2581 V2582 V2670 V2712 V2713  
        V2719 V2787 V2828 V2852 V2868 V2906 V2908 V2911 V2968 V2703 V2708 V2718
        V2709 V2949 V2822 V2834 V2593 V2641 V2403 V2518 V2509 V2542	V2544 V2440	V2450
		V2499 V2494 V2501 V2508	V2513 V2522	V2526 V2529 V2511 V2527 V2672 V2491 V2492 V2546 
  	 " ;
dataadd composite fam1973 6 V3002   
     "  V3002 V3020 V3021 V3027 V3031 V3035 V3046 V3051 V3053 V3094 V3098 
        V3108 V3110 V3111 V3114 V3115 V3181 V3244 V3245 V3256 V3272 V3275 V3277 
        V3279 V3300 V3301 V3210 V3211 V3212 V3240 V3126 V3158 V3003 V3071
        V3062 V3095	V3097 V3028	V3036
		V3052 V3047 V3054 V3066 V3075 V3079	V3082 V3061 V3064 V3080 V3183  V3044 V3045   V3099 
		" ;
dataadd composite fam1974 7 V3402   
     "  V3402 V3417 V3423 V3427 V3431 V3440 V3458 V3463 V3465 V3507 V3511 
        V3522 V3524 V3525 V3528 V3530 V3598 V3636 V3666 V3667 V3676 V3692 V3695 
        V3697 V3699 V3720 V3721 V3629 V3630 V3631 V3621 V3611 V3662 V3634
        V3608 V3609 V3541 V3574 V3403 V3483 V3474 V3508	V3510 V3424	V3432
		V3464 V3457 V3466 V3478 V3487 V3491	V3494 V3473 V3476 V3492	V3601  V3456 V3459   V3512
		" ;
dataadd composite fam1975 8 V3802   
     "  V3802 V3817 V3823 V3827 V3831 V3840 V3858 V3863 V3865 V3920 V3924 
        V3939 V3941 V3942 V3967 V3968 V4004 V4080 V4081 V4053 V4087 V4093 V4145 
        V4146 V4154 V4171 V4174 V4176 V4178 V4204 V4224 V4075 V4076 V4077
        V4142 V4111 V3971 V4138 V4139 V4108 V4109 V3994 V4029 V3803 V3883
        V3874 V3921	V3923 V3824	V3832
		V3864 V3859 V3866 V3878 V3888 V3892	V3906 V3872 V3876 V3893	V4055 V3873 V3856 V3857 V3925   
		" ;
dataadd composite fam1976 9 V4302   
      " V4302 V4318 V4320 V4332 V4338 V4340 V4344 V4349 V4373 V4379 V4435 
        V4439 V4450 V4452 V4454 V4458 V4459 V4478 V4479 V4517 V4603 V4624 V4625
        V4626 V4684 V4841 V4861 V4862 V4900 V5029 V5031 V5047 V5050 V5052
        V5054 V5096 V5099 V4619 V4620 V4621 V4767 V4494 V4496-V4498 V4877
        V4879-V4881 V4631 V4990 V4462 V4845 V4681 V4682 V4753 V4754 V4707 V4333	V4345
        V4562 V4564 V4496 V4562 V4564 V4303 V4398 V4388 V4946 V4948 V4436	V4438
		V4374 V4378 V4371 V4372	V4380 V4393 V4403 V4407	V4420 V4387 V4390 V4409 V4605 V4440
      " ;
dataadd composite fam1977 10 V5202   
     "  V5202 V5217 V5219 V5232 V5238 V5240 V5244 V5257 V5283 V5289 V5349 
        V5353 V5364 V5366 V5368 V5373 V5374 V5382 V5383 V5559 V5560 V5561 V5608
        V5626 V5627 V5629 V5631 V5632 V5633 V5650 V5662 V5665 V5672 V5673 
        V5674 V5675 V5676 V5677 V5678 V5679 V5680 V5554-V5556 V5403 V5233	V5245
        V5405-V5407 V5509 V5511-V5513 V5294 V5310 V5328 V5605 V5575 V5377
        V5601 V5602 V5572 V5573 V5625 V5464 V5466 V5203 V5294 V5310 V5299 V5350	V5352
		V5284 V5288 V5281 V5282	V5290 V5304 V5315 V5319	V5333 V5298 V5301 V5321	V5507 V5354
      " ;
dataadd composite fam1978 11 V5702   
      " V5702 V5717 V5719 V5731 V5737 V5739 V5743 V5758 V5782 V5788 V5849 
        V5853 V5864 V5866 V5868 V5872 V5873 V5877 V5878 V5953 V5954 V6070 V6071 
        V6101 V6102 V6103 V6157 V6173 V6174 V6176 V6178 V6179 V6180 V6197 
        V6209 V6212 V6003 V6219 V6096-V6098 V5894-V5897 V6041-V6044 V5793
        V5810 V5828 V6154 V6124 V5876 V6150 V6151 V6121 V6122 V6172 V5991
        V5993 V5703 V5793 V5810 V5798 V5850	V5852 V5732	V5744
		V5783 V5787 V5780 V5781	V5789 V5803 V5814 V5818	V5832 V5797 V5800 V5820	V6039 V5854
      " ;
dataadd composite fam1979 12 V6302   
	  " V6302 V6319 V6321 V6336 V6342 V6344 V6348 V6364 V6391 V6398 V6461
        V6465 V6479 V6480 V6482 V6484 V6486 V6492 V6495 V6496 V6497 V6591 V6594 
        V6595 V6695 V6696 V6707 V6710 V6711 V6754 V6766 V6767 V6769-V6773 
		V6790 V6802 V6805 V6812 V6576 V6648 V6689-V6691 V6505-V6508
        V6601-V6604 V6405 V6421 V6439 V6751 V6721 V6494 V6593 V6747 V6748  V6337	V6349
        V6718 V6719 V6564 V6566 V6303 V6405 V6421 V6409 V6636 V6638 V6462	V6464
		V6392 V6397 V6389 V6390	V6399 V6414 V6425 V6429	V6443 V6407 V6411 V6431	V6596 V6466
      " ;
dataadd composite fam1980 13 V6902   
     "  V6902 V6917 V6919 V6934 V6940 V6942 V6946 V6962 V6981 V6988 V7066 
        V7070 V7084 V7085 V7087 V7089 V7091 V7095 V7098 V7099 V7100 V7193 V7196 
        V7197 V7313 V7314 V7340 V7343 V7344 V7387 V7412 V7413 V7415-V7419 
        V7435 V7447 V7451 V7455 V7178 V7250 V7292-V7294 V7108-V7111
        V7203-V7206 V6995 V7011 V7043 V7384 V7354 V7097 V7195 V7380 V7381 V6935	V6947
        V7351 V7352 V7166 V7168 V6903 V6995 V7011 V6999 V7238 V7240 V7067	V7069
		V6982 V6987 V6979 V6980	V6989 V7004 V7015 V7034	V7047 V6997 V7399 V7411	V7198 V7071
      " ;
dataadd composite fam1981 14 V7502   
      " V7502 V7517 V7519 V7530 V7536 V7538 V7540 V7554 V7573 V7580 V7657 
        V7661 V7675 V7676 V7678 V7700 V7702 V7706 V7709 V7710 V7712 V7872 V7873 
        V7879 V7882 V7883 V7971 V7974 V7975 V8039 V8065 V8066 V8067-V8071 
        V8087 V8099 V8103 V8107 V7864 V7941 V7992-V7994 V7983 V7731-V7734
        V7894-V7897 V7587 V7603 V7635 V8036 V8006 V7708 V7881 V8032 V8033 V7541	V7530 V7531
        V8003 V8004 V7814 V7816 V7503 V7587 V7603 V7591 V7927 V7929 V7658	V7660
		V7574 V7579 V7571 V7572	V7581 V7596 V7607 V7626	V7639 V7589 V8052 V8064	V7885  V7662
      " ;
dataadd composite fam1982 15 V8202   
      " V8202 V8217 V8228 V8234 V8236 V8238 V8252 V8265 V8273 V8351 V8355 
        V8364 V8369 V8370 V8374 V8377 V8378 V8380 V8538 V8541 V8542 V8616 V8617
        V8663 V8689 V8690 V8691-V8695 V8711 V8723 V8727 V8731 V8524 V8592
        V8611-V8613 V8620 V8393-V8396 V8552-V8555 V8280 V8296 V8328 V8660
        V8630 V8376 V8540 V8656 V8657 V8627 V8628 V8475 V8477 V8394 V8396
        V8203 V8280 V8296 V8284 V8582 V8584 V8352	V8354 V8229	V8239
		V8266 V8271 V8263 V8264	V8274 V8289 V8300 V8319	V8332 V8282 V8676 V8688	V8594  V8356
    " ;
dataadd composite fam1983 16 V8802   
      " V8802 V8817 V8819 V8830 V8836 V8838 V8840 V8854 V8873 V8881 V8964
        V8975 V8977 V8881 V8960 V8964 V8974 V8999 V9001 V9005 V9008 V9009 V9011
        V9094 V9095 V9169 V9170 V9188 V9191 V9192 V9226 V9227 V9261 V9262 
        V9290 V9291 V9349 V9375 V9376 V9377-V9381 V9408 V9419 V9420 V9433
        V9174 V9265 V9302 V9303 V9304 V9296 V9024-V9027 V9202-V9205 V8888
        V8904 V8936 V9346 V9316 V9007 V9190 V9342 V9343 V9313 V9314 V9112
        V9114 V9025 V9027 V8803 V8888 V8904 V8892 V9241 V9243 V8961	V8963 V8831	V8841
		V8874 V8879 V8871 V8872	V8882 V8897 V8908 V8927	V8940 V8890 V9362 V9374	V9267 V8965
      " ;
dataadd composite fam1984 17 V10002   
      " V10002 V10018 V10020 V10037 V10043 V10043 V10131 V10225 V10256 V10263 
        V10292 V10293 V10294 V10418 V10422 V10437 V10438 V10440 V10447 V10449 
        V10453 V10458 V10459 V10460 V10480 V10481 V10484 V10493 V10498 V10511-V10512
        V10514 V10515 V10594 V10595 V10652 V10653 V10671 V10676 V10677 V10694 
        V10695 V10698 V10707 V10712 V10728 V10729 V10797 V10798 V10850 V10851 
        V10879 V10880 V10966 V11022 V11023 V11024-V11028 V11055 V11065 V11066 
        V11079 V10657 V10854 V10893-V10895 V10877 V10884 V10887 V10549-V10552 
        V10763-V10766 V10274 V10298 V10393 V10993 V10963 V10457 V10675 V10989
        V10990 V10960 V10961 V10620 V10622 V10550 V10552 V10003 V10274 V10298
        V10278 V10820 V10822 V10419	V10421 V10038	V10034	V10132	V10036	V10128	V10130
		V10257 V10262 V11395 V10255	V10264 V10283 V10304 V10383	V10397 V10276 V11009 V11021	V10757 V10423
      " ;
dataadd composite fam1985 18 V11102  
      " V11102 V11125 V11127 V11146 V11151 V11153 V11258 V11397 V11404 V11437
        V11438 V11439 V11450 V11451 V11605 V11609 V11618 V11619 V11621 V11628
        V11630 V11637 V11649 V11650 V11651 V11832 V11833 V11834 V11835 V11836 V11837 
        V11838 V11839 V11840 V11841 V11922 V11923 V11937 V11938 V11956 V11993 V11994 V12000 V12012 
        V12013 V12197 V12198 V12199 V12200 V12201 V12202 V12203 V12204 V12205
        V12206 V12292 V12293 V12311 V12371 V12372 V12374 V12375-V12379 V12426 V12427 
        V12446 V11638 V12001 V11894 V11896 V11897 V11991 V12344 V12347 
        V11693-V11696 V12056-V12059 V11416 V11421-V11422 V11443 V11455 V11573
        V11740 V12103 V11648 V12011 V12277 V12278 V11793 V11795 V11141	V11143	V11145	V11253	V11255	V11257
        V11694 V11696 V11103 V11416 V11443 V11420 V12156 V12158 V11606	V11608
		V11398 V11403 V11395 V11396	V11405 V11428 V11460 V11562	V11578 V11418 V12358 V12370	V12014 V11610 
      " ;
dataadd composite fam1986 19 V12502  
      " V12502 V12524 V12526 V12545 V12550 V12552 V12657 V12796 V12803 V12836
        V12837 V12838 V12857 V12858 V13010 V13014 V13023 V13024 V13026 V13037 
        V13039 V13046 V13052 V13053 V13054 V13225 V13231 V13232 V13427 V13429 V13499 
        V13500 V13510 V13564 V13565 V13579 V13623 V13624 V13626 V13627-V13631 V13665 V13666 
        V13687 V13047 V13226 V13405 V13407 V13408 V13417 V13452 V13464
        V13093-V13096 V13270-V13273 V12815 V12820-V12821 V12842 V12862 V12980
        V13606 V13532 V13051 V13230 V13549 V13550 V13485 V13486 V13189 V13191
        V13094 V13096 V12503 V12815 V12842 V12819 V13357 V13359 V13011	V13013
		V12797 V12802 V12794 V12795	V12804 V12827 V12867 V12969 V12985 V12817 V13610 V13622	V13233  V13015
		V12540	V12542	V12544	V12652	V12654	V12656
      " ;                   
dataadd composite fam1987 20 V13702  
      " V13702 V13724 V13726 V13745 V13750 V13752 V13809 V13898 V13905 V13940
        V13959 V13960 V14113 V14117 V14126 V14127 V14129 V14140 V14142 V14146 
        V14152 V14153 V14154 V14321 V14327 V14328 V14515 V14517 V14546 V14547 V14557 V14611 
        V14612 V14626 V14670 V14671 V14673 V14674-V14678 V14712 V14713 V14737 V13938 
        V13939 V13959 V13960 V14147 V14322 V14502 V14504 V14505 V14513 V14524
        V14528 V14191-V14194 V14364-V14367 V13917 V13922-V13923 V13944 V13964
        V14082 V14653 V14579 V14151 V14326 V14596 V14597 V14532 V14533 V14285
        V14287 V14192 V14194 V13703 V13917 V13944 V13921 V14449 V14451 V14114 V14116
		V13899 V13904 V13896 V13897	V13906 V13929 V13950 V13969	V14071 V14087 
		V13919 V14657 V14669 V14329 V14118 V13740	V13742	V13744	V13804	V13806	V13808
      " ;      
dataadd composite fam1988 21 V14802  
      " V14802 V14835 V14840 V14842 V14865 V14824 V14826 V14913 V14920 V15129 
        V15133 V15136 V15140 V15141 V15142 V15148 V15150 V15154 V15160 V15161 V15162 
        V15456 V15160 V15161 V15462 V15463 V15994 V15996 V16020 V16021 V16031 V16085 
        V16086 V16100 V16144 V16145 V16147 V16148-V16152 V16187 V16188 V16208 V15155 
        V15457 V15770 V15779 V15780 V15993 V15999 V16002 V15245-V15248 
        V15547-V15550 V14932 V14937-V14938 V14959 V14979 V15097 V16127 V16053 
        V15159 V15461 V16070 V16071 V16006 V16007 V15395 V15397 V15246 V15248
        V14803 V14932 V14959 V14936 V15697 V15699 V15130 V15132
		V14914 V14919 V14911 V14912	V14921 V14944 V14965 V14984	V15086 V15102 V14934 V16131	V16143	V15464 V15134
		V14830	V14832	V14834	V14860	V14862	V14864
      " ;      
dataadd composite fam1989 22 V16302  
      " V16302 V16324 V16335 V16340 V16342 V16365 V16400 V16413 V16420 V16453 
        V16454 V16455 V16474 V16475 V16326 V16630 V16634 V16641 V16642 V16643 
        V16649 V16651 V16655 V16661 V16662 V16663 V16809 V16813 V16820 V16970 V16974 
        V16980 V16981 V17128 V17132 V17135 V17139 V17289 V17391 V17393 V17417 
        V17418 V17428 V17482 V17483 V17497 V17533 V17534-V17538 V17565 V17566 V17612 V16656 
        V16975 V17305 V17308 V17309 V17390 V17396 V17399 V16746-V16749 
        V17065-V17068 V16432 V16437-V16438 V16459 V16479 V16597 V17524 V17450 
        V16660 V16979 V17467 V17468 V17403 V17404 V16910 V16912 V16747 V16749
        V16303 V16432 V16459 V16436 V17229 V17231 V16631 V16633
		V16414 V16419 V16411 V16412	V16421 V16444 V16465 V16484	V16586 V16602 V16434 V17528 V17532 V16982 V16635
		V16330	V16332	V16334	V16360	V16362	V16364
      " ;      
dataadd composite fam1990 23 V17702  
      " V17702 V17724 V17744 V17749 V17751 V17726 V17774 V17829 V17836 V17869 
        V17870 V17871 V17878 V17890 V17891 V18048 V18052 V18072 V18073 V18075
        V18087 V18089 V18093 V18099 V18100 V18101 V18395 V18401 V18402 V18722 V18724 
        V18748 V18749 V18759 V18813 V18814 V18828 V18875 V18878 V18882 V18883 V18884 V18885 
        V18889 V18916 V18917 V18943 V18094 V18396 V18709 V18712 V18713 V18721 
        V18727 V18730 V18184-V18187 V18486-V18489 V17848 V17853-V17854 V17875 
        V17895 V18013 V18855 V18781 V18098 V18400 V18798 V18799 V18734 V18735
        V18334 V18336 V18185 V18187 V17703 V17848 V17875 V17852 V18887-V18889
        V18636 V18638 V18049 V18051
		V17830 V17835 V17827 V17828	V17837 V17860 V17881 V17900	V18002 V18018 V17850 V18862	V18874 V18403 V18053
		V17739	V17741	V17743	V17769	V17771	V17773
      " ;                   
dataadd composite fam1991 24 V19002  
      " V19002 V19024 V19026 V19074 V19129 V19136 V19044 V19049 V19051 V19169 
        V19170 V19171 V19190 V19191 V19348 V19352 V19372 V19373 V19375 V19387 
        V19389 V19393 V19399 V19400 V19401 V19695 V19701 V19702 V20022 V20024 V20048 
        V20049 V20059 V20113 V20114 V20178 V20128 V20182 V20183 V20184 V20185 V20189 V20216 
        V20217 V20175 V20243 V19394 V19696 V20009 V20012 V20013 V20021 V20027
        V20030 V19484-V19487 V19786-V19789 V19148 V19153-V19154 V19175 V19195
        V19313 V20155 V20081 V19398 V19700 V20098 V20099 V20034 V20035 V19634
        V19636 V19485 V19487 V19003 V19148 V19175 V19152 V20187-V20189 V19936
        V19938 V19349 V19351
		V19130 V19135 V19127 V19128	V19137 V19160 V19181 V19200	V19302 V19318 V19150 V20162	V20174 V19703 V19353
		V19039	V19041	V19043	V19069	V19071	V19073
      " ;      
dataadd composite fam1992 25 V20302  
      " V20302 V20324 V20326 V20344 V20349 V20351 V20374 V20429 V20436 V20469 
        V20470 V20471 V20490 V20491 V20650 V20654 V20672 V20673 V20675 V20687 
        V20689 V20693 V20699 V20700 V20701 V20995 V21001 V21002 V21322 V21324 V21354 
        V21355 V21365 V21419 V21420 V21434 V21481 V21484 V21488 V21489 V21490 V21491 V21495 
        V21522 V21523 V21547 V20694 V20996 V21309 V21312 V21313 V21321 V21328
        V21331 V20784-V20787 V21086-V21089 V20448 V20453-V20454 V20475 V20495
        V20613 V21461 V21387 V20698 V21000 V21404 V21405 V21340 V21341 V20934
        V20936 V20785 V20787 V20303 V20448 V20475 V20452 V21493-V21495 V21236
        V21238 V20651 V20653 V20339	V20341	V20343	V20369	V20371	V20373
		V20430 V20435 V20427 V20428	V20437 V20460 V20481 V20500	V20602 V20618 V20450 V21003 V20655
      " ;        
dataadd composite fam1993 26 V21602  
      " V21602 V21610 V21612 V21634 V21637 V21638 V21670 V21739 V21634 V21739 V21806
        V22045 V22046 V22059 V22061 V22062 V22075 V22077 V22078 V22091 V22093 
        V22317 V22303 V22304 V22405 V22409 V22427 V22428 V22430 V22441 V22444 
        V22448 V22454 V22455 V22456 V22801 V22807 V22808 V23181 V23183 V23211 V23212 V23222 
        V23275 V23276 V23290 V23322 V23323 V23324 V23325 V23326 V23327 V23336 V23337 
        V23361 V22449 V22802 V23168 V23171 V23172 V23180 V23187 V23190 V22557
        V22558 V22560-V22561 V22910-V22911 V22913-V22914 V21893 V21961-V21962
        V22140 V22268 V22390 V23317 V23244 V22453 V22806 V23260 V23261 V23197
        V23198 V22724 V22727 V22558 V22561 V21603 V21893 V22140 V21879-V21880
        V22126-V22127 V21960 V23327 V23077 V23080 V22406 V22408 V21631	V21633	V21667	V21669
		V21740 V21742 V21744 V21746	V21748 V21766 V21782 V21802	V21750 V21735 V21732 V21733	V21738 V21808 V22809  V22410     
V21942 V21926 V21910 V21894 V21878 V21862 V21846 V21830 V22365 V22350 V22334 V22318 V22303 V22285 V22269 V22253 V22237 V22221 V22205 V22188 V22173 V22157 V22141 V22125 V22109 V22092 V22076 V22060 V22044 V22028 V22011 V21995 V21979 V22372 V22368 V22375 V22377 V22379 V22381 V22383 V22385 V22387 V22389 V22391 V22393 V22395                 
	" ;

dataadd composite fam1994er 27 ER2002 
      " ER2002 ER2006 ER2010 ER2014 ER2032-ER2038 ER2045 ER2068 ER2079-ER2083 
        ER2088 ER2222 ER2224 ER2225 ER2562 ER2573-ER2577 ER2582 ER3139 
        ER3354-ER3356 ER3369 ER3479 ER3643-ER3645 ER3726-ER3729 ER3880-ER3885 ER3894
        ER3916 ER3941-ER3946 ER3959 ER3986 ER3139 ER3479 ER3140 ER3702-ER3704 ER2069 
        ER2072 ER2563 ER2566 ER3706 ER3707 ER3713 ER3853 ER3854 ER3954 ER3858 
        ER3859 ER2073 ER2567 ER2168 ER2170-ER2173 ER2175-ER2177 ER2662 
        ER2663-ER2668 ER2669-ER2671 ER3400-ER3402 ER3415-ER3417 ER3613-ER3615
        ER3714-ER3717 ER3916 ER2592 ER2079 ER2080 ER2078 ER2572 ER3924 ER3926
        ER3864 ER3860 ER2169 ER2414 ER2174 ER2419 ER2416 ER2415-ER2417
        ER2420-ER2422 ER3416-ER3417 ER3401-ER3402 ER3986 ER2908-ER2911 ER2913-ER2916 ER3866 ER4017
		ER4048 ER4115 ER2007 ER2009 ER4096	ER4107
		ER4117 ER4118 ER4119 ER4123 ER4125 ER4127 ER4129 ER4131 ER4133 ER4135 
		ER4137 ER4139 ER4140 ER4141 ER4144 ER4145 ER4153 ER4155 ER4160 ER2011

      " ; 
dataadd composite fam1995er 28 ER5002 
      " ER5002 ER5005 ER5009 ER5013 ER5031 ER5032 ER5035-ER5037 ER5044 ER5045
        ER5067 ER5071 ER5078 ER5079 ER5221 ER5223 ER5224 ER5561 ER5565 ER5572
        ER5573 ER5715 ER5717 ER5718 ER6139 ER6355 ER6356 ER6357 ER6370 ER6480
        ER6645 ER6646 ER6647 ER6750-ER6755 ER6764 ER6786 ER6811-ER6816 ER6829 ER6139 
        ER6480 ER6140 ER6704-ER6706 ER5068 ER5071 ER5562 ER5565 ER6708 ER6709 
        ER6715 ER6723 ER6724 ER6725 ER6729 ER5072 ER5566 ER5167 ER5169-ER5172
        ER5174-ER5176 ER5661 ER5662-ER5667 ER5668-ER5670 ER6401-ER6403 
        ER6416-ER6418 ER6615-ER6617 ER6716-ER6719 ER6786 ER5591 ER5078 ER5079 
        ER5077 ER5571 ER6794 ER6796 ER6734 ER6736 ER5168 ER5413 ER5173 ER5418
        ER5415 ER5414-ER5416 ER5419-ER5421 ER6417-ER6418 ER6402-ER6403 ER6856
        ER5907-ER5910 ER5912-ER5915 ER6857 ER5006 ER5008 ER6936	ER6947
		ER6888 ER6955 ER6957 ER6958 ER6959 ER6963 ER6965 ER6967 ER6969 ER6971 
		ER6973 ER6975 ER6977 ER6979 ER6980 ER6981 ER6984 ER6985 ER6993 ER6995 ER7000 ER5010
      " ;         

	  dataadd composite fam1996er 29 ER7002  
      " ER7002 ER7005 ER7009 ER7013 ER7031 ER7032 ER7042 ER7043 ER7050 ER7051 
        ER7110 ER7111 ER7163 ER7167 ER7174 ER7175 ER7317 ER7319 ER7320 ER7657 
        ER7661 ER7668 ER7669 ER7811 ER7813 ER7814 ER8256 ER8472-ER8474 ER8487
        ER8597 ER8762-ER8764 ER8996-ER9001 ER9032 ER9057-ER9062 ER9075 ER9102 ER8256 
        ER8597 ER8257 ER8822-ER8824 ER7164 ER7167 ER7658 ER7661 ER8826 ER8827 
        ER8833 ER8969 ER8970 ER8974 ER8975 ER7168 ER7662 ER7263 ER7265-ER7268 
        ER7270-ER7272 ER7757 ER7758-ER7763 ER7764-ER7766 ER8518-ER8520 
        ER8533-ER8535 ER8732-ER8734 ER8834-ER8837 ER9032 ER7687 ER7174 ER7175 
        ER7173 ER7667 ER9010 ER9040 ER9042 ER8980 ER8982 ER7264 ER7509 ER7269 ER7514
        ER7511 ER7510-ER7512 ER7515-ER7517 ER8534-ER8535 ER8519-ER8520 
        ER8003-ER8006 ER8008-ER8011 ER9108 ER7006 ER7008 ER9187	ER9198
		ER9139 ER9206 ER9208 ER9209 ER9210 ER9214 ER9216 ER9218 ER9220 ER9222 ER9224 
		ER9226 ER9228 ER9230 ER9231 ER9232 ER9235 ER9236 ER9244 ER9246 ER9251		ER7010
      " ;      

	  dataadd composite fam1997er 30 ER10002 
      " ER10002 ER10004 ER10008 ER10012 ER10016 ER10035 ER10036 ER10039 ER10044 ER10045 
        ER10056 ER10080-ER10090 ER10231 ER10232 ER10563-ER10572 
        ER10713 ER10714 ER11150 ER11336-ER11338 ER11351 ER11352 ER11353 
        ER11366-ER11368 ER11491 ER11644-ER11646 ER11760 ER11761 ER11848 ER11865 ER11898 
        ER12079-ER12084 ER11150 ER11151 ER11131 ER11704-ER11706  
        ER10563 ER11708 ER11709 ER11715 ER11723 ER11724 ER11727 ER11728  
        ER10567 ER11777 ER10183-ER10190 ER10665-ER10672 ER11412-ER11414 ER11427-ER11429 
        ER11614-ER11616 ER11716-ER11719 ER11810 ER10599  
        ER11816 ER11824 ER11735 ER11743 ER10184 ER10423 ER10424 ER10186
        ER10425 ER10188 ER10427 ER10428 ER10190 ER10429 ER10185 ER10189-ER10190
        ER11428-ER11429 ER11413-ER11414 ER11898 ER10905-ER10907 ER12174	ER12185
        ER10909-ER10911 ER12070 ER12072 ER12074 ER12076 ER12085 ER10009	ER10011
		ER12065 ER12066 ER12068 ER12079 ER12080 ER12082 ER12083 ER12084 ER12116 ER12193 
		ER12197 ER12199 ER12201 ER12203 ER12205 ER12207 ER12209 ER12211 ER12213 ER12214 ER12220	ER10013
		                                 ER12074              ER12070 ER12072 ER12078 ER12076            
     "  ;


dataadd composite fam1999er 31 ER13002 
     "  ER13002 ER13004 ER13009 ER13013 ER13021 ER13040 ER13041 ER13044 ER13047 ER13053 ER13056 
        ER13201-ER13321 ER13362 ER13363 ER13568-ER13574 ER13717-ER13728
        ER13755 ER13826-ER13833 ER13874 ER13875 ER14080-ER14082 ER14084-ER14086 ER14416 ER14417 
		ER14602-ER14604 ER14617-ER14619 ER14632 ER14633 
        ER14634 ER14647 ER14678-ER14680 ER14693-ER14695 ER14757  
        ER14880-ER14882 ER14910 ER14911 ER14912
        ER14970-ER14972 ER14976 ER14977 ER14983-ER14987 
        ER15115-ER15117 ER15120-ER15122 ER15125-ER15127 ER15175 ER15181 ER15198 
		ER15200-ER15203 ER15220 ER15223 ER15225 ER15226 ER15235-ER15236 ER15246 ER15249-ER15252 ER15255 ER15257 ER15258 
		ER15261 ER15264 ER15266-ER15267 ER15276-ER15277 ER15287 ER15290-ER15293 ER15296 ER15298-ER15299 
        ER15321 ER15327 ER15344 ER15346-ER15349 ER15366 ER15369 
        ER15371-ER15372 ER15381-ER15382 ER15392 ER15395-ER15398 ER15401 ER15403
        ER15404 ER15407 ER15410 ER15412-ER15413 ER15422-ER15423 ER15433 
        ER15436-ER15449 ER15452-ER15456 ER15470-ER15492
        ER15555 ER15557 ER15560-ER15564 ER15578-ER15600 ER13010	ER13012 
        ER15809 ER15818 ER15836-ER15842 ER15856 ER15887 ER15894 ER15903 
        ER15928-ER15934 ER15948 ER15980 ER16471	ER16482
        ER16426-ER16430 ER16453 ER16455 ER16457 ER16459 ER16462-ER16466 
		ER13727 ER16427 ER16448 ER16449 ER16451 ER16462 ER16463 ER16465 ER16466 ER16490 ER16494 	 	
		ER16496 ER16498 ER16500 ER16502 ER16504 ER16506 ER16508 ER16510 ER16511 ER16518		ER13014
		                                 ER16457               ER16455 ER16455 ER16461 ER16459            
      " ;	
dataadd composite fam2001er 32 ER17002  
     "  ER17002 ER17004 ER17012 ER17016 ER17024 ER17043-ER17045 ER17049 ER17052 ER17053 
        ER17060 ER17063 ER17064 ER17212-ER17227 
        ER17325-ER17326 ER17328 ER17330 ER17332 ER17333 
        ER17335 ER17337 ER17391-ER17394 ER17608 ER17610 ER17612 ER17615 ER17617 ER17786-ER17790 
        ER17793-ER17797 ER17824 ER17895-ER17896 ER17898 ER17900 ER17902-ER17903 ER17905 ER17961-ER17964 
        ER18179 ER18181 ER18183 ER18186 ER18188 ER18190 ER18561 ER18562 ER18563 ER18765-ER18768 
        ER18781-ER18784 ER18797-ER18800 ER18813 
        ER18846-ER18848 ER18862-ER18864 ER18930 ER18931 
        ER19062-ER19064 ER19094-ER19097 ER19158-ER19160 ER19172 ER19173 ER19179-ER19183
        ER19311-ER19313 ER19316-ER19318 ER19321-ER19323 ER19326 ER19343 ER19349 ER19366
        ER19368-ER19371 ER19388 ER19391 ER19393-ER19394 ER19403-ER19404 ER19414
        ER19417-ER19420 ER19423 ER19425 ER19426 ER19429 ER19432 ER19434-ER19435 
        ER19444-ER19445 ER19455 ER19458-ER19461 ER19464 ER19466-ER19467 ER19486 
        ER19492 ER19509 ER19511-ER19514 ER19531 ER19534 ER19536-ER19537 
        ER19546-ER19547 ER19557 ER19560-ER19563 ER19566 ER19568 ER19569 ER19572 
        ER19575 ER19577 ER19578 ER19587-ER19588 ER19598 ER19601-ER19604 ER19607 
        ER19609-ER19614 ER19617-ER19621 ER19635-ER19639 ER19641-ER19645 
        ER19647-ER19651 ER19653-ER19657 ER19705 ER19707 ER20399	ER20410 
        ER19720 ER19722 ER19725-ER19729 ER19743-ER19747 ER19749-ER19753 
        ER19870 ER19879 ER19897-ER19903 ER19917 ER19948 ER19955 ER19964 ER19989-ER19995 
        ER20009 ER20041 ER20372-ER20376 ER20394 ER17013	ER17015
		ER20373	ER17796	ER20394	ER20418	ER20420	ER20421	ER20422	ER20426	ER20428	ER20430	ER20432	
		ER20434	ER20436	ER20438	ER20440	ER20442	ER20443	ER20444	ER20447	ER20448	ER20456 ER17017
		ER19000 ER18984 ER18968 ER18865 ER18684 ER18668 ER18652 ER18636 ER19145 ER19129 ER19113 
		ER19097  ER19081 ER19065 ER19049 ER19033 ER18952 ER18936 ER18913 ER18897 ER18881 ER18849   
		ER18817  ER18784 ER18768 ER18752  ER18733 ER18717 ER18700                   ER19016           
      " ;  
dataadd composite fam2003er 33 ER21002  
      " ER21002 ER21003 ER21016 ER21020 ER21023 ER21042-ER21044 ER21048 ER21051 ER21052 
        ER21059 ER21062 ER21063 ER21123-ER21127 ER21150-ER21151 ER21145-ER21146 
        ER21149-ER21151 ER21173 ER21175-ER21177 
        ER21282 ER21283 ER21285 ER21287 ER21289 ER21290 ER21292 ER21294
        ER21373-ER21377 ER21396 ER21397 ER21399  ER21400 ER21401 ER21421 ER21424-ER21427 
        ER21532 ER21533 ER21535 ER21537 ER21539 ER21540 ER21542 ER21544 ER21848-ER21851 
        ER21929-ER21931 ER22135-ER22138 ER22151-ER22154 ER22167-ER22170 ER22183 
        ER22216-ER22218 ER22232-ER22234 ER22435-ER22437 ER22545-ER22548
        ER22300 ER22301 ER22467 ER22468 ER22469 ER22470 ER22531-ER22533 ER22537 ER22538 ER22544
        ER22706-ER22708 ER22711-ER22713 ER22716-ER22718 ER22721-ER23007 
        ER23009 ER23013 ER23014 ER23017-ER23021 ER23035-ER23039 ER23041-ER23045 
        ER23047-ER23051 ER23053-ER23057 ER23136 ER23141 ER23144-ER23148 
        ER23162-ER23166 ER23168-ER23172 ER23174-ER23178 ER23180-ER23184 
        ER23307 ER23316 ER23334-ER23340 ER23354 ER23385 ER23392 ER23401 ER23426-ER23432 ER23446 ER23477 
        ER24080 ER24081 ER24082 ER24091-ER24093 ER24099 ER24116 ER24117 ER24135 ER24137-ER24143 
        ER24179 ER21017	ER21019 ER24118 ER24120	ER24122	ER24124	ER24126	ER24128	ER24130	ER24132	ER24134	
		ER24108	ER24106	ER24105	ER24109 ER24136	ER24111 ER21395  ER21021
		ER22389 ER22372 ER22355 ER22235 ER22056 ER22039 ER22022 ER22005  ER22502 ER22486 ER22470  
		ER22454 ER22438 ER22422 ER22406 ER22322 ER22306 ER22267 ER22251 ER22219 ER22203 ER22187 
		ER22170 ER22154 ER22138 ER22122 ER22105 ER22089 ER22072 ER22283 ER22338 ER22518        
	" ; 
dataadd composite fam2005er 34  ER25002 
	"	ER25002 ER25003 ER25016 ER25020 ER25023 ER25028 ER25029 ER25039 ER25042	
		ER25050 ER25104-ER25108 ER25131 ER25138 ER25139 ER25271 ER25272	
		ER25274 ER25276 ER25278 ER25279 ER25281 ER25283 ER25362-ER25365 ER25389	
		ER25396 ER25397 ER25529 ER25530 ER25532 
		ER25804-ER25807 ER25910 ER26281 ER26513 ER26518	
		ER26519 ER26525 ER26687 ER26688 ER26689 ER26693 ER26694 ER26698 ER26699	
		ER26719 ER26725 ER26742 ER26744 ER26745 ER26746 ER26747 ER26764 ER26767	
		ER26769 ER26770 ER26779 ER26780 ER26790 ER26793 ER26794 ER26795 ER26796	
		ER26799 ER26801 ER26802 ER26805 ER26808 ER26810 ER26811 ER26820 ER26821	
		ER26831 ER26834 ER26835 ER26836 ER26837 ER26840 ER26842 ER26843 ER26863	
		ER26869 ER26886 ER26888 ER26889 ER26890 ER26891 ER26908 ER26911 ER26913	
		ER26914 ER26923 ER26924 ER26934 ER26937 ER26938 ER26939 ER26940 ER26943	
		ER26945 ER26946 ER26949 ER26952 ER26954 ER26955 ER26964 ER26965 ER26975	
		ER26978 ER26979 ER26980 ER26981 ER26984 ER26986 ER26987 ER26990 ER26995	
		ER26998 ER27002 ER27006 ER27018 ER27038 ER27113 ER27118 ER27121 ER27125	
		ER27129 ER27141 ER27161 ER27267 ER27277 ER27297 ER27301 ER27317 ER27349 ER27356	
		ER27366 ER27393 ER27397 ER27413 ER27445 ER27886 ER27887 ER27888 ER27897-ER27899 
		ER27913 ER27931 ER27943 ER28003 ER28004 ER28037 ER28039 ER28042 ER28078 ER25127 ER25017	ER25019
		ER27914 ER27916	ER27918	ER27920	ER27922	ER27924	ER27926	ER27928	ER27930	
		ER27906	ER27909	ER27908	ER27910	ER27944	ER27940 ER25385	ER25021
		ER26370 ER26353 ER26336 ER26216 ER26037 ER26020 ER26003 ER25986 ER28001 ER26483 ER26467 ER26451 
		ER28034 ER26435 ER26419 ER26403 ER26387 ER26303 ER26287 ER27981 ER26248 ER26232 ER26200 ER26184 
		ER26168 ER26151 ER26135 ER26119 ER26103 ER28032 ER26086 ER26070 ER26053 ER28011 ER28013 ER28015 
		ER28036 ER28017 ER28019 ER28021 ER28023 ER28025 ER28027 ER28029 ER26264 ER26319 ER26499        
	  " ;
dataadd composite fam2007er 35  ER36002 
	"	ER36002 ER36003 ER36016 ER36020 ER36023 ER36028 ER36029 ER36039 ER36042 ER36051 
		ER36109-ER36112 ER36136 ER36143 ER36144 ER36367-ER36370 ER36394 ER36401 ER36402 
		ER36822 ER36823 ER38623 ER36928 ER38202-ER38206 
		ER37299 ER37531 ER37705 ER37706 ER37707 ER37711 ER37712 ER37716 ER37717 ER37536 ER37537 ER37543 
		ER40442 ER40452 ER40876 ER40887 ER40921 ER40933 ER40993 ER40994
		ER40472 ER40476 ER40492 ER40524 ER40531 ER40541 ER40565 ER40569 ER40585 ER40617 
		ER41027 ER41029 ER41032 ER41069 ER36132 ER36017	ER36019
		ER40904 ER40906	ER40908	ER40910	ER40912	ER40914	ER40916	ER40918	ER40920	
		ER40896	ER40899	ER40898	ER40900	ER40934	ER40930 ER36390	 ER36021
		ER37388 ER37371 ER37354 ER37234 ER37055 ER37038 ER37021 ER37004 ER40971 ER37501 ER37485 ER37469 
		ER41024 ER37453 ER37437 ER37421 ER37405 ER37321 ER37305 ER40991 ER37266 ER37250 ER37218 ER37202 
		ER37186 ER37169 ER37153 ER37137 ER37121 ER41022 ER37104 ER37088 ER37071 ER41003 ER41005 ER41026 
		ER41007 ER41009 ER41011 ER41013 ER41015 ER41017 ER41019 ER41001      ER37282 ER37337 ER37517        
	 " ;
dataadd composite fam2009er 36  ER42002 
	"	ER42002 ER42003 ER42016 ER42020 ER42023 ER42029 ER42030 ER42040 ER42043 ER42059 
		ER42140-ER42143 ER42171 ER42178 ER42179 ER42392-ER42395 ER42423 ER42430 ER42431 
		ER42813 ER42814 ER42919 ER44175-ER44179 ER46767 ER46788 ER46829 ER46841
		ER43290 ER43522 ER43527 ER43528 ER43534 ER43696-ER43698 ER43702 ER43703 ER43707 ER43708 
		ER46414 ER46424 ER46449 ER46469 ER46501 ER46508 ER46518 ER46543 ER46547 ER46453 ER46563 ER46595
		ER46901 ER46902 ER46935 ER46936 ER46938 ER46940 ER46942 ER46944 ER46946
		ER46948 ER46950 ER46952 ER46954 ER46956 ER46958 ER46960 ER46962 ER46964 ER46968 ER46970
		ER46972 ER46974 ER47012 ER42167 ER42017	ER42019 ER46923 ER46925 ER46927 ER46909 ER43273 ER43328 ER43508
		ER46812 ER46814	ER46816	ER46818	ER46820	ER46822	ER46824	ER46826	ER46828	
		ER46804	ER46807	ER46806	ER46808	ER46842	ER46838 ER42419	ER42021
		ER43379 ER43362 ER43345 ER43225 ER43046 ER43029 ER43012 ER42995 ER46899 ER43492 
		ER43476 ER43460 ER46932 ER43444 ER43428 ER43412 ER43396 ER43312 ER43296 ER46879 
		ER43257 ER43241 ER43209 ER43193 ER43177 ER43160 ER43144 ER43128 ER43112 ER46930 
		ER43095 ER43079 ER43062  ER46911 ER46913 ER46934 ER46915 ER46917 ER46919 ER46921 	    
		ER46762	ER46764	ER46766	ER46783	ER46785	ER46787
	  " ;	  
dataadd composite fam2011er 37 ER47302
   "	ER47302 ER47303 ER47316 ER47320 ER47323 ER47329 ER47330 ER47345 ER47348 ER47366
   		ER47448-ER47451 ER47484 ER47491 ER47492 ER47705-ER47708 ER47741 ER47748 ER47749
		ER48135 ER48136 ER48137 ER48241 ER48615 ER49494-ER49498
		ER48847 ER48852 ER48853 ER48859 ER49041-ER49043 ER49047 ER49048 ER49052 ER49053
		ER51775 ER51785 ER51810 ER51814 ER51830 ER51862
		ER51869 ER51879 ER51904 ER51908 ER51924 ER51956
		ER52175 ER52196 ER52237 ER52249 ER52309 ER52310 ER52343
		ER52344 ER52346 ER52348 ER52350 ER52352 ER52354 ER52356 ER52358 ER52360
		ER52362 ER52364 ER52366 ER52368 ER52392 ER52394		
		ER52396 ER52398 ER52436 ER47479 ER47317	ER47319
		ER52220 ER52222	ER52224	ER52226	ER52228	ER52230	ER52232	ER52234	ER52236	
		ER52212	ER52215	ER52214	ER52216	ER52250	ER52246 ER47736	ER47321
		ER48704 ER48687 ER48670 ER48550 ER48368 ER48351 ER48334 ER48317 ER52307 ER48817 
		ER48801 ER48785 ER52340 ER48769 ER48753 ER48737 ER48721 ER48637 ER48621 ER52287 
		ER48582 ER48566 ER48534 ER48518 ER48502 ER48485 ER48469 ER48453 ER48437 ER52338 
		ER48417 ER48401 ER48384 ER52319 ER52321 ER52342 ER52323 ER52325 ER52327 ER52329 
		ER52331 ER52333 ER52335 ER52317 ER48598 ER48653 ER48833 ER52170	ER52172	ER52174	ER52191	ER52193	ER52195       
	"	; 	
dataadd composite fam2013er 38 ER53002
  "   	ER53002 ER53003 ER53016 ER53020 ER53023 ER53029 ER53030 ER53045 ER53048 ER53066
		ER53148 ER53149 ER53150 ER53151 ER53179 ER53411 ER53412 ER53413 ER53414 ER53442
		ER53935 ER54309 ER57512 ER57522 ER57549 ER57553 ER57602 ER57622 ER57632 ER57659
		ER57663 ER57712 ER57970 ER57997 ER58013 ER58015 ER58016 ER58017 ER58021 ER58023 
		ER58025 ER58027 ER58029 ER58031 ER58033 ER58035 ER58037 ER58038 ER58047 ER58050 
		ER58051 ER58118 ER58119 ER58152 ER58214 ER58215 ER58257 ER57680 ER57570 ER53029
		ER53030 ER53045 ER53048 ER53066 ER53017	ER53019	ER53021 ER57976
		ER54398 ER54381 ER54364 ER54244 ER54045 ER54028 ER54011 ER53994 ER58116 ER54560 
		ER54544 ER54480 ER58149 ER54464 ER54448 ER54432 ER54416 ER54331 ER54315 ER58090 
		ER54276 ER54260 ER54228 ER54212 ER54196 ER54163 ER54147 ER54131 ER54115 ER58147 
		ER54095 ER54079 ER54062 ER58128  ER58151 ER58132 ER58134 ER58136 ER58138 ER58140 
		ER58142 ER58144 ER58126 ER54292 ER54347 ER54576 ER54179 ER54496 ER54512  ER54528 ER58130 
		ER57971	ER57973	ER57975	ER57992	ER57994	ER57996
  "		;																			
dataadd composite fam2015er 39  ER60002
  "		ER60002 ER60003 ER60016 ER60021 ER60024 ER60163 ER60164 ER60165 ER60166 ER60194
		ER60426 ER60427 ER60428 ER60429 ER60457 ER60994 ER61349 ER64634 ER64644 ER64671
		ER64676 ER64733 ER64773 ER64783 ER64810 ER64815 ER64872 ER65150 ER65177 ER65193
		ER65195 ER65196 ER65197 ER65201 ER65203 ER65205 ER65207 ER65209 ER65211 ER65213 
		ER65215 ER65216 ER65225 ER65229 ER65231 ER65233 ER65235 ER65237 ER65239 ER65241
		ER65243	ER65244 ER65315 ER65316 ER65349 ER65449 ER65451 ER65492 ER64832 ER64693
		ER60017	ER60019	ER60022 ER65156 ER65151	ER65153	ER65155	ER65172	ER65174	ER65176
		ER61474 ER61457 ER61440 ER61286 ER61087 ER61070 ER61053 ER61036 ER65313 ER61671 
		ER61655 ER61591 ER65346 ER61540 ER61524 ER61508 ER61492 ER61407 ER61391 ER65283 
		ER61318 ER61302 ER61270 ER61254 ER61238 ER61205 ER61189 ER61173 ER61157 ER65344 
		ER61137 ER61121 ER61104 ER65325 ER65348 ER65329 ER65331 ER65333 ER65335 ER65337 
		ER65339 ER65341 ER65323 ER61334 ER61423 ER61687 ER61221 ER61607 ER61623  ER61639 ER65327 ER61556 ER61575
  "		;
dataadd composite fam2017er 40  ER66002
  "		ER66002 ER66003 ER66016 ER66021 ER66024 ER66164 ER66165 ER66166 ER66167 ER66195 
		ER66439 ER66440 ER66441 ER66442 ER66470 ER67046 ER67401 ER70707	ER70717 ER70744 
		ER70749 ER70806 ER70845 ER70855 ER70882 ER70887 ER70944 ER71233 ER71254 ER71270 
		ER71272 ER71273 ER71274 ER71278 ER71280 ER71282 ER71284 ER71286 ER71288 ER71290 
		ER71292 ER71293	ER71302 ER71321 ER71306 ER71308 ER71310 ER71312 ER71314 ER71316	
		ER71318 ER71320 ER71392 ER71393 ER71426 ER71528 ER71530 ER71570 ER70766 ER70904 
		ER66017	ER66019	ER66022 ER71228	ER71230	ER71232	ER71249	ER71251	ER71253
		ER67494 ER67477 ER67460 ER67338 ER67139 ER67122 ER67105 ER67088 ER71390 ER67724 
		ER67708 ER67579 ER71423 ER67544 ER67676 ER67511 ER67528 ER67660 ER67644 ER71360 
		ER67370 ER67354 ER67322 ER67306 ER67290 ER67257 ER67241 ER67225 ER67209 ER71421 
		ER67189 ER67173 ER67156 ER71402  ER71425 ER71406 ER71408 ER71410 ER71412 ER71414 
		ER71416 ER71418 ER71400 ER67386 ER67443 ER67740 ER67273 ER67595 ER67627  ER67611 ER71404 ER67692 ER67563
  "		;  
dataadd composite fam2019er 41  ER72002
  "		ER72002 ER77631 ER76897 ER76753 ER76902 ER76757 ER72016 ER72021 ER72022 ER76860 ER76870 ER76715 
  		ER76919 ER76774 ER72017 ER72019 ER77591 ER72003 ER72024 ER77448 ER77589 ER76962 ER76817 ER72164 
		ER72165 ER72166 ER72167 ER72441-ER72444 ER73069 ER73424 ER77183 ER77315 ER77324 ER73179 ER77343 ER77414
		ER77415 ER77255 ER77254 ER77250 ER77252 ER77276 ER77275 ER77273 ER77271 ER72195 ER73179 ER77300
		ER77302 ER77304 ER77306 ER77308 ER77310 ER77312 ER77314 ER77292 ER77294 ER77296 ER77328 ER77330 ER77295
		ER77332 ER77334 ER77336 ER77338 ER77340 ER77342 ER73162 ER77351 ER77321 ER77347 ER77349 ER73128
		ER73111 ER77412 ER77408 ER73747 ER73196 ER73232 ER73248 ER73264 ER73280 ER73345 ER73377 ER73393
		ER73409 ER73296 ER73329 ER77382 ER77445 ER77447 ER77440 ER77438 ER77436 ER77434	ER77432 ER77430
		ER77428 ER77426 ER77424 ER77422 ER77370 ER73602 ER73212 ER73699 ER73551 ER73683 ER73667 ER77443
		ER73466 ER73763 ER73296 ER73618 ER73650 ER73634 ER77426 ER77406 ER77390 ER76725 ER73361 ER73534 
		ER72472 ER73567
  "		;  
  
#delimit cr																			

qui compress
cd $rawdata
save composite, replace

*************************************************************************;
******************* Adding wealth data data              ****************;
** NOTE: can use dataadd from above--merging on one family id;

dataadd composite wlth1984 	17  S101 "S101-S111 S113-S117"
dataadd composite wlth1989 	22  S201 "S201-S211 S213-S217"
dataadd composite wlth1994 	27  S301 "S301-S311 S313-S317"
dataadd composite wlth1999 	31  S401 "S4*"
dataadd composite wlth2001 	32  S501 "S5*"
dataadd composite wlth2003 	33  S601 "S6*"
dataadd composite wlth2005 	34  S701 "S7*"
dataadd composite wlth2007  35  S801 "S8*"



*************************************************************************;
******************* Saving the final data                ****************;
** Saving the general PSID file ;

cd $rawdata
qui compress
save psidmain, replace

clear
log close


 



 
